from rest_framework import serializers

#ｓｋｕ序列化器
from meiduo_mall.apps.goods.models import *


class SKUSerializers(serializers.ModelSerializer):
    class Meta:
        model = SKU
        fields = "__all__"



class SKUCategorySerializers(serializers.ModelSerializer):
    class Meta:
        model = GoodsCategory
        fields = ['id','name']


class GoodSimpleSerializers(serializers.ModelSerializer):
    class Meta:
        model = SPU
        fields = ['id','name']